//
//  HeadImageView.m
//  ProjectA_LK
//
//  Created by apple on 16/6/14.
//  Copyright © 2016年 冷坤. All rights reserved.
//

#import "HeadImageView.h"

@implementation HeadImageView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatSubView:frame];
    }
    return self;
}

- (void)creatSubView:(CGRect)frame
{
    self.photoLeft = [UIButton buttonWithType:UIButtonTypeCustom];
    self.photoLeft.frame = CGRectMake(0, 0, (frame.size.width - 10) / 2, frame.size.height);
    [self addSubview:_photoLeft];
    
    
    
    self.photoRight = [UIButton buttonWithType:UIButtonTypeCustom];
       self.photoRight.frame = CGRectMake(self.photoLeft.frame.size.width + 5, 0, self.photoLeft.frame.size.width + 5, self.photoLeft.frame.size.height);
        [self addSubview:_photoRight];
}

- (void)dealloc{
    [_photoLeft release];
    [_photoRight release];
    [super dealloc];
}
@end
